package top.healthylife.service.impl;/*
 *@Author GaoZeXi
 *@Created time 2020/4/25 6:54
 *@Description:
 * Step by Step  and Stand on,  You Are The Best Investment!!!
 */

import org.springframework.beans.factory.annotation.Autowired;
import top.healthylife.domain.Menu;
import top.healthylife.domain.Role;
import top.healthylife.mapper.MenuMapper;
import top.healthylife.service.MenuService;

import java.util.List;

public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> findMenusAndChildByRoleId(Role role) {
        return menuMapper.findMenusAndChildByRoleId(role.getId());
    }
}
